local M = {}

---! 初始伙伴
function M:init_partner()
    return PARTNER_D:init_partner_info(self)
end

---! 新增伙伴
function M:add_partner(id)
    local partner = PARTNER_D:add_partner(self, id)
    if partner then
        PARTNER_D:combat_partner(self, partner)
    end
    return partner
end

---! 复活伙伴
function M:rescue_partner(id)
    return PARTNER_D:rescue_partner(self, id)
end

---! 复活所有伙伴
function M:rescue_all_partners()
    return PARTNER_D:rescue_all_partners(self)
end

---! 获取伙伴
function M:get_partner(id)
    return PARTNER_D:get_partner(self, id)
end

---! 获取所有伙伴
function M:get_all_partners()
    return PARTNER_D:get_all_partners(self)
end

---! 获取出战伙伴
function M:get_combat_partner(pos)
    return PARTNER_D:get_combat_partner(self, pos)
end

---! 获取出战伙伴
function M:get_combat_partners()
    return PARTNER_D:get_combat_partners(self)
end

---! 获取出战位置
function M:get_combat_pos(id)
    return PARTNER_D:get_combat_pos(self, id)
end

F_CHAR_PARTNER = M
